from selenium import webdriver
from selenium.webdriver.common.by import By
import time

driver = webdriver.Chrome()
driver.get('https://www.baidu.com')
driver.maximize_window()

time.sleep(2)

input = driver.find_element(By.XPATH,'//form/span/input')
print(input.get_attribute('outerHTML'))

input1 = driver.find_element(By.XPATH,'//form/span')
print(input1.get_attribute('outerHTML'))

